%html
	%head 
		%title Members
	%body
		%h1 Blog Members
		-if @people.length ==0
			%p= "Sorry, there is no members. Create a new one using the link below!"
		-else
			- @people.each do |person|
				%p{style: "color:red;"}
					%b= link_to person.name, person

     
				
				%p{style: "float: right;"}
					= link_to "Delete", person, method: :delete, confirm: "Are you sure you want to delete this member?"
		
				%hr{style: "clear: both;"}

		= button_to 'Show only members in egypt', list_egypt_path		
		%br
		= link_to 'New Member',new_person_path